package com.dq.domain.activity;
import com.dq.vo.baseVo.VO;
import com.dq.domain.base.BaseEntity;
import com.dq.domain.service.ServiceProject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;

/**
 * @Author luchangtong
 * @Date 2020/3/13 11:47
 */
@Data
@Entity
@ApiModel("活动和服务项目关联表")
public class ActivityServiceProjectCentre extends BaseEntity implements VO.ToVO {
    @ApiModelProperty("服务项目")
    @ManyToOne
    protected ServiceProject serviceProject;

    @ApiModelProperty("活动")
    @ManyToOne
    protected Activity activity;

    @ApiModelProperty("服务次数")
    protected Long serviceNum;

    @Data
    @ApiModel(value = "活动视图")
    public static class Vo implements VO {
        @ApiModelProperty("活动id")
        protected Long activityId;
        @ApiModelProperty("活动编号")
        protected String activityNo;

        @ApiModelProperty("活动标题")
        protected String title;

        @ApiModelProperty("活动描述")
        protected String description;

        @ApiModelProperty("活动开始时间")
        protected String beginTime;

        @ApiModelProperty("活动结束时间")
        protected String endTime;

        @ApiModelProperty("活动轮播地址")
        protected String bannerUrl;

        @ApiModelProperty("收费方式")
        protected String activityCostType;

        @ApiModelProperty("正常费用")
        protected BigDecimal normalPrice;

        @ApiModelProperty("会员费用")
        protected BigDecimal memberPrice;

        @ApiModelProperty("活动状态")
        protected String activityStatus;

        @ApiModelProperty("多图")
        protected String imgUrl;

    }

    @Override
    public VO toVO(boolean isRecursion) {
        return null;
    }

}
